<template>
  <div>
    home
    {{ $t('fy1') }}
    <svg-icon name="icon-home" />
  </div>
</template>


<script setup>
import { useThemeStore } from '@/stores/theme';

const num = ref('')
const themeStore = useThemeStore()
const value1 = ref('')

// 生成随机颜色的函数
const getRandomColor = () => {
  const letters = '0123456789ABCDEF'
  let color = '#'
  for (let i = 0; i < 6; i++) {
    color += letters[Math.floor(Math.random() * 16)]
  }
  return color
}

const handleChangeColor = () => {
  themeStore.changePrimaryColor(getRandomColor())
}
</script>


<style lang="scss" scoped></style>
